<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <title>Login</title>

    <link rel="stylesheet" href="../font/css/all.min.css">
    <link rel="stylesheet" href="../css/animate.css">
    <link rel="shortcut icon" href="../images/favicon.ico">

    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background: url(../images/background-03.webp);
            /* background-repeat: no-repeat; */
            /* background-size: 100% 100%; */
            height: 100vh;
            width: 100vw;
            overflow: hidden;
        }

        #login-box {
            width: 30%;
            height: auto;
            margin: 0 auto;
            text-align: center;
            background: #00000080;
            padding: 20px 50px;
            position: relative;
            top: 50%;
            transform: translateY(-70%);
            backdrop-filter: blur(10px);
        }

        #login-box h1 {
            color: #ffffff;
            user-select: none;
        }

        #login-box .form {
            margin-top: 30px;
        }

        #login-box .form i {
            font-size: 18px;
            color: #ffffff;
            user-select: none;
        }

        #login-box .form .item {
            margin-top: 20px;
        }

        #login-box .form .item input {
            width: 16vw;
            font-size: 18px;
            border: 0;
            border-bottom: 2px solid #ffffff;
            padding: 5px 10px;
            background: #ffffff00;
            color: #ffffff;
            margin-left: 10px;
            outline: none;
        }

        #login-box button {
            margin: 30px 0 10px;
            width: 100%;
            height: 30px;
            font-size: 20px;
            font-weight: 700;
            border: 0;
            background-image: linear-gradient(to right, #b8cbb8 0%, #b8cbb8 0%, #ddbaee 0%, #e8a8ee 33%, #b8d9f8 66%, #59bcf5 100%);
            border-radius: 15px;
            outline: none;
            cursor: pointer;
            user-select: none;
        }

        #login-box .form .item label {
            color: #fff;
            font-size: 14px;
            cursor: pointer;
            user-select: none;
        }
        
        #login-box .form .item label input {
            width: 18px;
            vertical-align: -1px;
            margin: 0;
        }
    </style>
</head>

<body>
    <div id="login-box">
        <h1>YunGoo</h1>
        <div class="form">
            <div class="item">
                <i class="fa fa-user" aria-hidden="true"></i>
                <input type="text" id="userName" placeholder="Username" autocomplete="off" autofocus>
            </div>
            <div class="item">
                <i class="fa fa-key" aria-hidden="true"></i>
                <input type="password" id="password" placeholder="Password" autocomplete="off">
            </div>
            <div class="item">
                <label title="不需要用户名和密码，可以使用所有功能，退出后记录会永久删除！"><input type="checkbox" id="signin">游客模式</label>
            </div>
            <button type="submit" id="submit">login</button>
        </div>
    </div>
    <script src="../js/component/login.js" type="module"></script>
</body>

</html>